<%@page import="java.io.File"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page errorPage="index.jsp?site=error" %>
<%
	
	String currentSite = "overview";
	String site = request.getParameter("site");
	if( site == null || site.length() == 0 || site.equals("index")){
		currentSite = "../includejsp/overview" + ".jsp";
	} else {
		currentSite = "../includejsp/" + site + ".jsp";
	}
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Studienarbeit SSP in Java</title>
<link rel="stylesheet" type="text/css" href="../css/bsp.css" />
</head>

<body>

	<div id="wrapper">
		<div id="outheader">
			<div id="inheader">
				<h1>Header</h1>
			</div>
		</div>

		<div id="outleftcolumnsmall">
			<div id="inleftcolumn">
				<!-- Inkludiert die in der URL angebene Seite. -->
				<jsp:include page="<%=currentSite%>"></jsp:include>
			</div>
		</div>


		<div id="outrightcolumn">
			<div id="inrightcolumn">
				<!-- <ul>
					<li>Login / User</li>
					<li>Inhaltsverzeichnis</li>
				</ul> -->
				<jsp:include page="../WEB-INF/jsp/login.jsp"></jsp:include>
				<br/><br/><hr/>
				<div id="inhalt">
				<h2>Inhalt</h2><br/>
				<a href="/Studienarbeit2011/jsp/index.jsp">Startseite</a><br/>
				<a href="/Studienarbeit2011/jsp/index.jsp?site=register">Registrierung</a><br/>
				<a href=".">Platzhalter</a><br/>
				<a href=".">Platzhalter</a><br/>
				</div>
			</div>
		</div>
		<div id="outimpressum">
			<div id="inimpressum">Impressum</div>
		</div>
	</div>
</body>
</html>